package com.wcity.manage.service.impl;

import com.wcity.manage.dao.dal.model.PageModel;
import com.wcity.manage.dao.mapper.BlockMapper;
import com.wcity.manage.dao.mapper.PropertyNightDutyMapper;
import com.wcity.manage.dao.mapper.VisitRegisterMapper;
import com.wcity.manage.dao.model.Block;
import com.wcity.manage.dao.model.NightDuty;
import com.wcity.manage.dao.model.VisitRegister;
import com.wcity.manage.service.property.PropertyNightDutyService;
import com.wcity.manage.service.property.VisitRegisterService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 值班信息管理模块
 * Created by zm on 2016/12/14.
 */
@Service
public class VisitRegisterServiceImpl implements VisitRegisterService {

    @Resource private VisitRegisterMapper visitRegisterMapper;

    @Override
    public List<VisitRegister> getPayTypeListPage(PageModel pageModel) {

        return null;
    }

    @Override
    public int VisitRegisterAdd(VisitRegister visitRegister) {
        if(visitRegisterMapper.insert(visitRegister)>0){
            return 1;
        }else{
            return 0;
        }
    }
}
